package com.kingdee.pda.ui.out_check;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kingdee.pda.R;
import com.kingdee.pda.entity.SnlistBean;

import java.util.List;

/**
 * @author：dlj
 * @data：2021/10/15 15:10
 * @des：
 */
public class OutCheckSnListAdapter extends BaseQuickAdapter<SnlistBean, BaseViewHolder> {

    private Context context;

    public OutCheckSnListAdapter(Context context, List<SnlistBean> beans) {
        super(R.layout.item_snlist, beans);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, SnlistBean item) {
        viewHolder.setText(R.id.tv_skuCode, item.getSkuCode())
                .setText(R.id.tv_snCode, item.getSn());
    }
}
